package com.slipper.system.flow.controller;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.slipper.system.flow.bo.FlowInstBO;
import com.slipper.system.flow.service.FlowInstService;
import com.slipper.util.ResultUtil;

/**
 * 流程实例信息表
 */
@RestController
@RequestMapping("/system/flowInst")
public class FlowInstController {
    @Resource
    private FlowInstService flowInstService;

    @PostMapping("/queryPage")
    public String queryPage(@RequestBody FlowInstBO bo) {
        return ResultUtil.successResult(flowInstService.queryPage(bo));
    }

    @PostMapping("/delete")
    public String delete(@RequestBody FlowInstBO bo) {
        return ResultUtil.deleteResult(flowInstService.delete(bo));
    }
}
